exports.game = function(player,computer){
    var result = 0;
    switch (computer) {
        case 1:
            {
                if (player == computer) {
                    result = 1;
                } else if (player == 2) {
                    result = 2;
                } else {
                    result = 3;
                }
                break;
            }
        case 2:
            {
                if (player == computer) {
                    result = 1;
                } else if (player == 3) {
                    result = 2;
                } else {
                    result = 3;
                }
                break;
            }
        case 3:
            {
                if (player == computer) {
                    result = 1;
                } else if (player == 1) {
                    result = 2;
                } else {
                    result = 3;
                }
                break;
            }
    }
    switch (result) {
        case 1:
            {
                result = "平局";
                break;
            }
        case 2:
            {
                result = "您输了";
                break;
            }
        case 3:
            {
                result = "您赢了";
                break;
            }
    }
    return result;
};
